package cn.com.roy.thread.t7_4_3.formatOk2;

import java.text.SimpleDateFormat;

public class Test {
    public static void main(String[] args) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        String[] dateStringArray = new String[]{
          "2018-10-01", "2018-10-02","2018-10-03","2018-10-04","2018-10-05"
        };

        Mythread[]  threadArray = new Mythread[5];
        for (int i = 0; i < 5; i++) {
            //sdf = new SimpleDateFormat("yyyy-MM-dd");
            threadArray[i] = new Mythread(sdf,dateStringArray[i]);
        }
        for (int i = 0; i < 5; i++) {
            threadArray[i].start();
        }
    }
}
